<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="../img/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="../css/magnifier.css">
    <link rel="stylesheet" href="../css/home.css">
    <link rel="stylesheet" href="../css/index.css">
    <link rel="stylesheet" href="../css/goods.css">
    <title>校园二手坊</title>

</head>
<body class="layui-bg-gray font-black">
<div class="layui-container custom ">
    <!--header-->
    <div id="header" class="bg-white layui-row">
        <div class="layui-logo layui-col-lg2">
            <a href="#!newest" class="layui-col-lg10 logo"><img src="../img/logo.png" alt="二手Market"/></a>
        </div>
        <div class="layui-col-lg10 ">
            <ul class="layui-nav  layui-col-lg5 bg-white">
                <li class="layui-nav-item">
                    <form>
                        <div class="layui-inline search-icon">
                            <div class="layui-input-inline search-icon">
                                <input type="text" name="search" placeholder="二货搜搜"
                                       autocomplete="off" class="layui-input  search search-icon"/>
                            </div>
                            <div class="layui-inline" >
                                <i class="layui-icon search-icon-i">&#xe615;</i>
                            </div>
                        </div>
                    </form>
                </li>
            </ul>
            <ul class="layui-nav  layui-col-lg-offset2 layui-col-lg5 bg-white">
                <!--<li class="layui-nav-item ">-->
                    <!--<button class="layui-btn layui-bg-gray" id="publishing">我要发布</button>-->
                <!--</li>-->
                <!--<li class="layui-nav-item ">-->
                    <!--<button class="layui-btn layui-bg-gray" id="published">我的发布</button>-->
                <!--</li>-->
                <li class="layui-nav-item navItem">
                    <span class="navItem-span" id="publishing">我要发布</span>
                </li>
                <li class="layui-nav-item navItem">
                    <span class="navItem-span" id="published">我的发布</span>
                </li>
                <li class="layui-nav-item ">
                    <a href="#!home" id="userHeader">
                        <!--<img id="userHeadImg" src="../upload/img/header/header.png" class="layui-nav-img">-->
                        <img id="userHeadImg" src="" class="layui-nav-img">
                        <span class="font-black" id="nicknameId"></span>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本资料</a></dd>
                        <dd><a href="">安全设置</a></dd>
                        <dd><a href="#" id="logoutBtn"><b>退出账号</b></a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item "></li>
            </ul>
        </div>

    </div>

    <div id="main">

    </div>

    <div id="footer">
        <div class="go-to-top " id="toTop">
            <a href="" title="回顶部"><i class="layui-icon" style="font-size: 38px">&#xe604;</i></a>
        </div>
        <pre class="side-font font-black">
            <p>Copyright © 2018 <a href="javascript:;">YNZH</a> All Rights Reserved.</p>
        </pre>
    </div>

</div>


<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="../layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../js/q.js"></script>
<script src="http://cdn.bootcss.com/stomp.js/2.3.3/stomp.min.js"></script>
<script src="https://cdn.bootcss.com/sockjs-client/1.0.2/sockjs.min.js"></script>
<script src="../js/index.js" charset="utf-8"></script>



<!--发布表单弹窗中 下拉选择框 分类模板-->
<script type="text/html" id="selectCategoryTpl">
    <option value="">-请选择-</option>
    {{# layui.each(d.list,function(index,item){  }}
    <option value="{{ item.name }}">{{ item.name }}</option>
    {{# });  }}
</script>

<!--我要发布表单弹窗-->
<script type="text/html" id="publishing_form">
    <form class="layui-form" id="publishForm" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">种类</label>
            <div class="layui-input-inline">
                <select id="selCategory" name="category" lay-verify="required">
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">名字</label>
            <div class="layui-input-inline">
                <input type="text" name="name" required lay-verify="required" placeholder="请输入名称"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-inline">
                <input type="text" name="price" required lay-verify="required" placeholder="请输入价格￥" autocomplete="off"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">简要描述</label>
            <div class="layui-input-inline">
                <input type="text" name="description" required lay-verify="required" placeholder="商品简要描述"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">地点</label>
            <div class="layui-input-inline">
                <input type="text" name="location" required lay-verify="required" placeholder="请输入位置"
                       autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item ">
            <label class="layui-form-label " id="uploadBtn" type="button">选择图片</label>
            <div class="layui-input-inline">
                <input type="file" id="goodsImg" name="goodsImg" required lay-verify="required" placeholder="文件名"
                       autocomplete="off" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="publish-filter" id="submitBtn">立即发布</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</script>
<!--#聊天弹窗-->
<script type="text/html" id="chatLayer">
    <div id="chat-box" style="width:770px">

        <div id="chatList" style="float: left;height: 400px;width: 150px;background: #ffffff;position:relative;border:solid 2px #4E5465;overflow: scroll">
            <!--<div id="chatItem" class="" style="width: 145px;height: 30px;background: #01AAED;color: #00F7DE;font-size: 15px;padding:5px">-->
                <!--高晋峰-->
            <!--</div>-->
        </div>
        <div style="float: right;height: 400px;width: 600px;background: #4E5465;position:relative;border:solid 2px #4E5465">


            <div id="content" style="height: 330px;width: 600px;padding-bottom: 10px;overflow: scroll;">

            </div>

            <div style="height: 50px;width: 400px;position: absolute;bottom: 0">
                <textarea  id="editText" style="height: 50px;width: 590px">编辑框</textarea>
            </div>
            <button style="position:absolute; bottom: 0;right: 0" id="send">发送</button>
        </div>

    </div>
</script>

</body>
</html>